package cn.itcast.dao.cargo;


import cn.itcast.domain.cargo.ShippingOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShippingOrderDao {
    int deleteByPrimaryKey(String shippingOrderId);

    int insert(ShippingOrder record);

    int insertSelective(ShippingOrder record);

    ShippingOrder selectByPrimaryKey(String shippingOrderId);

    int updateByPrimaryKeySelective(ShippingOrder record);

    int updateByPrimaryKey(ShippingOrder record);

    List<ShippingOrder> findByCompanyId(String id);

    void alterState(@Param("id") String id, @Param("state") int state);

}